/**
 *
 */
package com.angel.mocks.daos.impl;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

import org.hibernate.criterion.Restrictions;

import com.angel.dao.generic.impl.GenericHibernateDAO;
import com.angel.mocks.dao.generic.Course;
import com.angel.mocks.dao.generic.Person;
import com.angel.mocks.daos.CourseDAO;

/**
 * @author William
 *
 */
public class CourseDAOHibernate extends GenericHibernateDAO<Course, Serializable> implements CourseDAO{


	public List<Course> findCourseBy(Person person) {
		return null;
	}

	public Collection<Course> findAll(boolean activateCourse){
		if(activateCourse){
			return this.findAllByCriteria(Restrictions.isNotNull("activate"));
		} else {
			return findAll();
		}
	}


	public List<Person> findAllPersons() {
		return null;
	}
}
